import React, { Component } from 'react'
import { Route, NavLink, Switch } from 'react-router-dom'
import TopHos from './TopHos'
import List from './List'
export default class Find extends Component {
  render() {
    return (
      <div>
        <h2>发现音乐</h2>
        <NavLink to='/find/tophos'>发现音乐排行榜</NavLink>
        <NavLink to='/find/list'>歌单</NavLink>
        <Switch>
          <Route path='/find/tophos' component={TopHos} />
          <Route path='/find/list' component={List} />
        </Switch>
      </div>
    )
  }
}
